Path: api/v1/jobs/{jobno}/timers
This API is JSON:API compliant.
This endpoint supports the following methods:
GET POST PATCH
The resource type for this endpoint is JobTimer
The identifier is jobno-refno
The JobTimer resource type attributes are as follows:
Path: api/v1/jobs/10/timers/10-1
Response:
{
"data": {
"id": "10-1",
"type": "JobTimer",
"attributes": {
"LabourInit": null,
"Comment": "",
"LabourType": "Admin",
"State": "Resumed",
"LineNum": 2
},
"links": {
"self": "/api/v1/jobs/10/timers/10-1"
}
}
}
Path: api/v1/jobs/10/timers
Request:
{
"data": {
"type": "JobTimer",
"attributes": {
"LabourInit": "SYS",
"Comment": "Test",
"LabourType": "Admin",
"LineNum": 1
}
}
}
Response:
{
"data": {
"id": "10-3",
"type": "JobTimer",
"attributes": {
"LabourInit": "SYS",
"Comment": "Test",
"LabourType": "Admin",
"State": "Resumed",
"LineNum": 3
},
"links": {
"self": "/api/v1/jobs/10/timers/10-3"
}
}
}
Path: api/v1/jobs/10/timers/10-1
Request:
{
"data": {
"id": "1",
"type": "JobTimer",
"attributes": {
"LabourInit": "SYS",
"Comment": "Test",
"LabourType": "Admin",
"State": "Resumed",
"LineNum": 1
}
}
}
Response:
{
"data": {
"id": "10-1",
"type": "JobTimer",
"attributes": {
"LabourInit": "SYS",
"Comment": "Test",
"LabourType": "Admin",
"State": "Resumed",
"LineNum": 1
},
"links": {
"self": "/api/v1/jobs/10/timers/10-1"
}
}
}